package com.greensecurity.sim.repository;

import com.greensecurity.sim.entity.SystemMessage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface SystemMessageRepository extends JpaRepository<SystemMessage, Long> {

    List<SystemMessage> findByIsRead(Boolean isRead);

}